﻿@using PhotoGallery.Views

@if (Request.IsAuthenticated) {
    <p>
        @Messages.hello, @Html.ActionLink(User.Identity.Name, "Manage", "Account", new {area = "Auth" }, new { @class = "username" })!
        @Html.ActionLink(Messages.logOff, "LogOff", "Account", new {area = "Auth" }, null)
    </p>
} else {
    <ul>
        <li>@Html.ActionLink(Messages.register, "Register", "Account", routeValues: new {area = "Auth" }, htmlAttributes: new { id = "registerLink", data_dialog_title = "Registration" })</li>
        <li>@Html.ActionLink(Messages.logOn, "LogOn", "Account", routeValues: new {area = "Auth" }, htmlAttributes: new { id = "logonLink", data_dialog_title = "Identification" })</li>
    </ul>
}